package com.alon.spring01.utils;

import com.alon.spring01.model.InsuranceBaseInfo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @program: spring01
 * @description: 模拟百万级数据
 * @author: yulongguang
 * @create: 2019-04-27 17:11
 **/
public class InsuranceList {

    public static List<InsuranceBaseInfo> getInsurList() {
        List<InsuranceBaseInfo> infos = new ArrayList<>();
        for (int i = 0; i < 500000; i++) {
            InsuranceBaseInfo insuranceBaseInfo = new InsuranceBaseInfo();
            insuranceBaseInfo.setOldCustId("Alon2108" + i);
            insuranceBaseInfo.setCustId("Alon2109" + i);
            insuranceBaseInfo.setCardCode("Alon2110" + i);
            insuranceBaseInfo.setOriginalIdNumber("阿龙哥" + i);
            insuranceBaseInfo.setName("红尘哥" + i);
            insuranceBaseInfo.setOriginalIdNumber("44148" + i);
            insuranceBaseInfo.setIdNumber("44149" + i);
            insuranceBaseInfo.setStartTime(new Date());
            infos.add(insuranceBaseInfo);
        }
        return infos;
    }
}
